package com.jin.spirng_boot_learn.stk.bean;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 响应状态
 * Created by d03815 on 2017/10/17.
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResponseStatus {

  @JsonProperty(value = "Id")
  private String id;

  @JsonProperty(value = "StatusCode")
  private Integer statusCode;

  @JsonProperty(value = "StatusString")
  private String statusString;

  @JsonProperty(value = "LocalTime")
  private String localTime;

  @JsonProperty(value = "RequestURL")
  private String requestURL;


  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public Integer getStatusCode() {
    return statusCode;
  }

  public void setStatusCode(Integer statusCode) {
    this.statusCode = statusCode;
  }

  public String getStatusString() {
    return statusString;
  }

  public void setStatusString(String statusString) {
    this.statusString = statusString;
  }

  public String getLocalTime() {
    return localTime;
  }

  public void setLocalTime(String localTime) {
    this.localTime = localTime;
  }

  public String getRequestURL() {
    return requestURL;
  }

  public void setRequestURL(String requestURL) {
    this.requestURL = requestURL;
  }

  public void setValue(String id, int statusCode, String statusString, String localTime, String requestURL) {
    setId(id);
    setStatusCode(statusCode);
    setStatusString(statusString);
    setLocalTime(localTime);
    setRequestURL(requestURL);
  }
}
